import request from '@/utils/request'

// 查询礼物列表
export function listGift(data) {
  return request({
    url: '/admin/gift/pageList',
    method: 'post',
    data: data
  })
}

// 查询礼物详细
export function getGift(id) {
  return request({
    url: '/admin/gift/query/' + id,
    method: 'get'
  })
}

// 新增礼物
export function addGift(data) {
  return request({
    url: '/admin/gift/add',
    method: 'post',
    data: data
  })
}

// 修改礼物
export function updateGift(data) {
  return request({
    url: '/admin/gift/update',
    method: 'post',
    data: data
  })
}

// 删除礼物
export function delGift(id) {
  return request({
    url: '/admin/gift/delete/' + id,
    method: 'delete'
  })
}

// 导出礼物
export function exportGift(query) {
  return request({
    url: '/admin/gift/export',
    method: 'get',
    params: query
  })
}
